/* eslint-disable */
(function (root, factory) {
  if (typeof module === 'object' && module.exports) {
    module.exports = root.document ?
      factory(root) :
      factory;
  } else {
    root.WCommons = factory(root);
  }
}(typeof window !== 'undefined' ? window : this, function (win) {
  var WCommons;

  if (win.WCommons && typeof win.WCommons === 'object') {
    return win.WCommons;
  }

  WCommons = win.WCommons = {win: win};

  WCommons.extends = function (obj, defaultOptions) {
    for (var key in defaultOptions) {
      if (obj[key] === undefined) {
        obj[key] = defaultOptions[key];
      }
    }
  }

  return WCommons;
}));
